[INFO] cloning repository https://github.com/juliosouzam/learn-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/juliosouzam/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuliosouzam%2Flearn-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuliosouzam%2Flearn-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3b4e5fc81641fc27af39d825f83d53ea3af7e6fa
[INFO] checking juliosouzam/learn-rust against master#98e1f041b6e33598a18edb928ec9db93a850c6cb for pr-101680
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuliosouzam%2Flearn-rust" "/workspace/builds/worker-3/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/juliosouzam/learn-rust on toolchain 98e1f041b6e33598a18edb928ec9db93a850c6cb
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+98e1f041b6e33598a18edb928ec9db93a850c6cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/juliosouzam/learn-rust
[INFO] finished tweaking git repo https://github.com/juliosouzam/learn-rust
[INFO] tweaked toml for git repo https://github.com/juliosouzam/learn-rust written to /workspace/builds/worker-3/source/Cargo.toml
[INFO] crate git repo https://github.com/juliosouzam/learn-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+98e1f041b6e33598a18edb928ec9db93a850c6cb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+98e1f041b6e33598a18edb928ec9db93a850c6cb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0ce340d2ef5ef87876315c8d6cc8cc9d0416e3df7fc58b3439238c6f10e842d4
[INFO] running `Command { std: "docker" "start" "-a" "0ce340d2ef5ef87876315c8d6cc8cc9d0416e3df7fc58b3439238c6f10e842d4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0ce340d2ef5ef87876315c8d6cc8cc9d0416e3df7fc58b3439238c6f10e842d4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0ce340d2ef5ef87876315c8d6cc8cc9d0416e3df7fc58b3439238c6f10e842d4", kill_on_drop: false }`
[INFO] [stdout] 0ce340d2ef5ef87876315c8d6cc8cc9d0416e3df7fc58b3439238c6f10e842d4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+98e1f041b6e33598a18edb928ec9db93a850c6cb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9bf2e7748dd8636efe317bf311c43019b3b3e95f26a819bc822499c64a462692
[INFO] running `Command { std: "docker" "start" "-a" "9bf2e7748dd8636efe317bf311c43019b3b3e95f26a819bc822499c64a462692", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.36
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling libc v0.2.108
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling syn v1.0.84
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]     Checking unicode-width v0.1.9
[INFO] [stderr]    Compiling unicode-segmentation v1.8.0
[INFO] [stderr]    Compiling serde v1.0.130
[INFO] [stderr]     Checking vec_map v0.8.2
[INFO] [stderr]     Checking ansi_term v0.12.1
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]     Checking strsim v0.8.0
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling quote v1.0.14
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking time v0.1.44
[INFO] [stderr]     Checking getrandom v0.2.3
[INFO] [stderr]     Checking clap v2.34.0
[INFO] [stderr]     Checking chrono v0.4.19
[INFO] [stderr]     Checking uuid v0.8.2
[INFO] [stderr]    Compiling thiserror-impl v1.0.30
[INFO] [stderr]    Compiling structopt-derive v0.4.18
[INFO] [stderr]     Checking thiserror v1.0.30
[INFO] [stderr]     Checking structopt v0.3.25
[INFO] [stderr]     Checking tasks v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `p`
[INFO] [stdout]   --> src/bin/default-trait.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 18 |     let p = Package::default();
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_p`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `weight` is never read
[INFO] [stdout]  --> src/bin/default-trait.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | struct Package {
[INFO] [stdout]   |        ------- field in this struct
[INFO] [stdout] 2 |     weight: f64,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]  --> src/bin/default-trait.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 |     fn new(weight: f64) -> Self {
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_is_some`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:3:7
[INFO] [stdout]   |
[INFO] [stdout] 3 |   let a_is_some = a.is_some();
[INFO] [stdout]   |       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_is_some`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_is_none`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:4:7
[INFO] [stdout]   |
[INFO] [stdout] 4 |   let a_is_none = a.is_none();
[INFO] [stdout]   |       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_is_none`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_mapped`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:5:7
[INFO] [stdout]   |
[INFO] [stdout] 5 |   let a_mapped = a.map(|num| num + 1);
[INFO] [stdout]   |       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_mapped`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_filtered`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 |   let a_filtered = a.filter(|num| num == &1);
[INFO] [stdout]   |       ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_filtered`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_or_else`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:7:7
[INFO] [stdout]   |
[INFO] [stdout] 7 |   let a_or_else = a.or_else(|| Some(5));
[INFO] [stdout]   |       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_or_else`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `unwrapped`
[INFO] [stdout]  --> src/bin/opt_combinators.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 |   let unwrapped = a.unwrap_or_else(|| 0);
[INFO] [stdout]   |       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unwrapped`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 6 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `word_length`
[INFO] [stdout]   --> src/bin/map-combinator.rs:17:7
[INFO] [stdout]    |
[INFO] [stdout] 17 |   let word_length = maybe_word().map(|w| w.len()).map(|l| l * 2);
[INFO] [stdout]    |       ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_word_length`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `maybe_num` is never used
[INFO] [stdout]  --> src/bin/map-combinator.rs:1:4
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn maybe_num() -> Option<i32> {
[INFO] [stdout]   |    ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Admin`, `User` and `Guest` are never constructed
[INFO] [stdout]  --> src/bin/a23.rs:3:3
[INFO] [stdout]   |
[INFO] [stdout] 2 | enum Access {
[INFO] [stdout]   |      ------ variants in this enum
[INFO] [stdout] 3 |   Admin,
[INFO] [stdout]   |   ^^^^^
[INFO] [stdout] 4 |   User,
[INFO] [stdout]   |   ^^^^
[INFO] [stdout] 5 |   Guest,
[INFO] [stdout]   |   ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]   = note: `Access` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `maybe_access` is never used
[INFO] [stdout]  --> src/bin/a23.rs:8:4
[INFO] [stdout]   |
[INFO] [stdout] 8 | fn maybe_access(name: &str) -> Option<Access> {
[INFO] [stdout]   |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `root` is never used
[INFO] [stdout]   --> src/bin/a23.rs:17:4
[INFO] [stdout]    |
[INFO] [stdout] 17 | fn root() -> Option<Access> {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `part_1` is never used
[INFO] [stdout]   --> src/bin/a23.rs:21:4
[INFO] [stdout]    |
[INFO] [stdout] 21 | fn part_1() -> bool {
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `part_2` is never used
[INFO] [stdout]   --> src/bin/a23.rs:25:4
[INFO] [stdout]    |
[INFO] [stdout] 25 | fn part_2() -> Option<Access> {
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `part_3` is never used
[INFO] [stdout]   --> src/bin/a23.rs:29:4
[INFO] [stdout]    |
[INFO] [stdout] 29 | fn part_3() -> Access {
[INFO] [stdout]    |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 6 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `attempt_access`
[INFO] [stdout]   --> src/bin/a18b.rs:35:7
[INFO] [stdout]    |
[INFO] [stdout] 35 |   let attempt_access = try_access(employee)?;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attempt_access`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Maintenance`, `Marketing`, `LineSupervisor`, `KitchenStaff` and `AssemblyTech` are never constructed
[INFO] [stdout]  --> src/bin/a18b.rs:2:3
[INFO] [stdout]   |
[INFO] [stdout] 1 | enum Position {
[INFO] [stdout]   |      -------- variants in this enum
[INFO] [stdout] 2 |   Maintenance,
[INFO] [stdout]   |   ^^^^^^^^^^^
[INFO] [stdout] 3 |   Marketing,
[INFO] [stdout]   |   ^^^^^^^^^
[INFO] [stdout] 4 |   Manager,
[INFO] [stdout] 5 |   LineSupervisor,
[INFO] [stdout]   |   ^^^^^^^^^^^^^^
[INFO] [stdout] 6 |   KitchenStaff,
[INFO] [stdout]   |   ^^^^^^^^^^^^
[INFO] [stdout] 7 |   AssemblyTech,
[INFO] [stdout]   |   ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Terminated` is never constructed
[INFO] [stdout]   --> src/bin/a18b.rs:12:3
[INFO] [stdout]    |
[INFO] [stdout] 10 | enum Status {
[INFO] [stdout]    |      ------ variant in this enum
[INFO] [stdout] 11 |   Active,
[INFO] [stdout] 12 |   Terminated,
[INFO] [stdout]    |   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `range`
[INFO] [stdout]  --> src/bin/range.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let range = 1..=3;
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_range`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `range`
[INFO] [stdout]  --> src/bin/range.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let range = 1..4;
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_range`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `content` is never read
[INFO] [stdout]  --> src/bin/hashmap.rs:5:3
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct Contents {
[INFO] [stdout]   |        -------- field in this struct
[INFO] [stdout] 5 |   content: String,
[INFO] [stdout]   |   ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]   = note: `Contents` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `user_id` and `name` are never read
[INFO] [stdout]  --> src/bin/a21.rs:3:3
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct User {
[INFO] [stdout]   |        ---- fields in this struct
[INFO] [stdout] 3 |   user_id: i32,
[INFO] [stdout]   |   ^^^^^^^
[INFO] [stdout] 4 |   name: String,
[INFO] [stdout]   |   ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]   = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `user_id` and `name` are never read
[INFO] [stdout]  --> src/bin/a21.rs:3:3
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct User {
[INFO] [stdout]   |        ---- fields in this struct
[INFO] [stdout] 3 |   user_id: i32,
[INFO] [stdout]   |   ^^^^^^^
[INFO] [stdout] 4 |   name: String,
[INFO] [stdout]   |   ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]   = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `word_length`
[INFO] [stdout]   --> src/bin/map-combinator.rs:17:7
[INFO] [stdout]    |
[INFO] [stdout] 17 |   let word_length = maybe_word().map(|w| w.len()).map(|l| l * 2);
[INFO] [stdout]    |       ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_word_length`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `maybe_num` is never used
[INFO] [stdout]  --> src/bin/map-combinator.rs:1:4
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn maybe_num() -> Option<i32> {
[INFO] [stdout]   |    ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]   --> src/bin/iterators.rs:11:63
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let find_me: Option<i32> = numbers.iter().find(|n| n == 3)
[INFO] [stdout]    |                                                               ^ help: add `;` here
[INFO] [stdout] 12 |     let count = numbers.iter().count();
[INFO] [stdout]    |     --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `range`
[INFO] [stdout]  --> src/bin/range.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let range = 1..=3;
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_range`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `range`
[INFO] [stdout]  --> src/bin/range.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let range = 1..4;
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_range`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `quis_2`
[INFO] [stdout]   --> src/bin/lifetimes.rs:25:41
[INFO] [stdout]    |
[INFO] [stdout] 25 | fn get_first_quiz<'a>(quis_1: &'a Quiz, quis_2: &Quiz, quis_3: &Quiz) -> &'a Answer {
[INFO] [stdout]    |                                         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_quis_2`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `quis_3`
[INFO] [stdout]   --> src/bin/lifetimes.rs:25:56
[INFO] [stdout]    |
[INFO] [stdout] 25 | fn get_first_quiz<'a>(quis_1: &'a Quiz, quis_2: &Quiz, quis_3: &Quiz) -> &'a Answer {
[INFO] [stdout]    |                                                        ^^^^^^ help: if this is intentional, prefix it with an underscore: `_quis_3`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `No` is never constructed
[INFO] [stdout]  --> src/bin/lifetimes.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | enum Answer {
[INFO] [stdout]   |      ------ variant in this enum
[INFO] [stdout] 3 |     Yes,
[INFO] [stdout] 4 |     No,
[INFO] [stdout]   |     ^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]   = note: `Answer` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `question` is never read
[INFO] [stdout]  --> src/bin/lifetimes.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | struct Form<'a> {
[INFO] [stdout]   |        ---- field in this struct
[INFO] [stdout] 9 |     question: &'a Answer,
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Form` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `question` is never read
[INFO] [stdout]   --> src/bin/lifetimes.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | struct Quiz {
[INFO] [stdout]    |        ---- field in this struct
[INFO] [stdout] 22 |     question: Answer,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Quiz` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_first_quiz` is never used
[INFO] [stdout]   --> src/bin/lifetimes.rs:25:4
[INFO] [stdout]    |
[INFO] [stdout] 25 | fn get_first_quiz<'a>(quis_1: &'a Quiz, quis_2: &Quiz, quis_3: &Quiz) -> &'a Answer {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 6 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `all_caps` is never used
[INFO] [stdout]  --> src/bin/testing.rs:1:4
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn all_caps(word: &str) -> String {
[INFO] [stdout]   |    ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/bin/a28.rs:20:30
[INFO] [stdout]    |
[INFO] [stdout] 18 |     fn new(color: Color) -> Self {
[INFO] [stdout]    |                             ---- expected `ShirtColor` because of return type
[INFO] [stdout] 19 |         match color {
[INFO] [stdout] 20 |             Color::Purple => Err("purple not allowed".to_owned()),
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `ShirtColor`, found enum `Result`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `ShirtColor`
[INFO] [stdout]                 found enum `Result<_, String>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `p`
[INFO] [stdout]   --> src/bin/default-trait.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 18 |     let p = Package::default();
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_p`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `tasks` due to 2 previous errors
[INFO] [stdout] warning: field `weight` is never read
[INFO] [stdout]  --> src/bin/default-trait.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | struct Package {
[INFO] [stdout]   |        ------- field in this struct
[INFO] [stdout] 2 |     weight: f64,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]  --> src/bin/default-trait.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 |     fn new(weight: f64) -> Self {
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/bin/iterators.rs:10:62
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let new_numbers: Vec<_> = numbers.iter().filter(|n| n >= 3).collect();
[INFO] [stdout]    |                                                              ^ expected `&&_`, found integer
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&&_`
[INFO] [stdout]                    found type `{integer}`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: can't compare `&&{integer}` with `{integer}`
[INFO] [stdout]   --> src/bin/iterators.rs:11:58
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let find_me: Option<i32> = numbers.iter().find(|n| n == 3)
[INFO] [stdout]    |                                                          ^^ no implementation for `&&{integer} == {integer}`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `PartialEq<{integer}>` is not implemented for `&&{integer}`
[INFO] [stdout]    = help: the following other types implement trait `PartialEq<Rhs>`:
[INFO] [stdout]              f32
[INFO] [stdout]              f64
[INFO] [stdout]              i128
[INFO] [stdout]              i16
[INFO] [stdout]              i32
[INFO] [stdout]              i64
[INFO] [stdout]              i8
[INFO] [stdout]              isize
[INFO] [stdout]            and 6 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Write`
[INFO] [stdout]  --> src/bin/p2.rs:3:21
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::{Read, Write};
[INFO] [stdout]   |                     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Blue` and `Green` are never constructed
[INFO] [stdout]  --> src/bin/if-let-else.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | enum Color {
[INFO] [stdout]   |      ----- variants in this enum
[INFO] [stdout] 2 |     Red,
[INFO] [stdout] 3 |     Blue,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 4 |     Green,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/bin/iterators.rs:11:32
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let find_me: Option<i32> = numbers.iter().find(|n| n == 3)
[INFO] [stdout]    |                  -----------   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `&{integer}`
[INFO] [stdout]    |                  |
[INFO] [stdout]    |                  expected due to this
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `Option<i32>`
[INFO] [stdout]               found enum `Option<&{integer}>`
[INFO] [stdout] help: use `Option::copied` to copy the value inside the `Option`
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let find_me: Option<i32> = numbers.iter().find(|n| n == 3).copied()
[INFO] [stdout]    |                                                               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name` and `email` are never read
[INFO] [stdout]   --> src/bin/p2.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 9  | struct Record {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 10 |     id: i64,
[INFO] [stdout] 11 |     name: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 12 |     email: Option<String>,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]    = note: `Record` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/bin/iterators.rs:13:29
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let last: Option<i32> = numbers.iter().last();
[INFO] [stdout]    |               -----------   ^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `&{integer}`
[INFO] [stdout]    |               |
[INFO] [stdout]    |               expected due to this
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `Option<i32>`
[INFO] [stdout]               found enum `Option<&{integer}>`
[INFO] [stdout] help: use `Option::copied` to copy the value inside the `Option`
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let last: Option<i32> = numbers.iter().last().copied();
[INFO] [stdout]    |                                                  +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/bin/iterators.rs:14:28
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let min: Option<i32> = numbers.iter().min();
[INFO] [stdout]    |              -----------   ^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `&{integer}`
[INFO] [stdout]    |              |
[INFO] [stdout]    |              expected due to this
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `Option<i32>`
[INFO] [stdout]               found enum `Option<&{integer}>`
[INFO] [stdout] help: use `Option::copied` to copy the value inside the `Option`
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let min: Option<i32> = numbers.iter().min().copied();
[INFO] [stdout]    |                                                +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/bin/iterators.rs:15:28
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let max: Option<i32> = numbers.iter().max();
[INFO] [stdout]    |              -----------   ^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `&{integer}`
[INFO] [stdout]    |              |
[INFO] [stdout]    |              expected due to this
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `Option<i32>`
[INFO] [stdout]               found enum `Option<&{integer}>`
[INFO] [stdout] help: use `Option::copied` to copy the value inside the `Option`
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let max: Option<i32> = numbers.iter().max().copied();
[INFO] [stdout]    |                                                +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: a value of type `Vec<i32>` cannot be built from an iterator over elements of type `&{integer}`
[INFO] [stdout]   --> src/bin/iterators.rs:16:26
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let take: Vec<i32> = numbers.iter().take(3).collect();
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^^^^^ ------- required by a bound introduced by this call
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          value of type `Vec<i32>` cannot be built from `std::iter::Iterator<Item=&{integer}>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromIterator<&{integer}>` is not implemented for `Vec<i32>`
[INFO] [stdout]    = help: the trait `FromIterator<T>` is implemented for `Vec<T>`
[INFO] [stdout] note: required by a bound in `collect`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `tasks` due to 9 previous errors
[INFO] running `Command { std: "docker" "inspect" "9bf2e7748dd8636efe317bf311c43019b3b3e95f26a819bc822499c64a462692", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9bf2e7748dd8636efe317bf311c43019b3b3e95f26a819bc822499c64a462692", kill_on_drop: false }`
[INFO] [stdout] 9bf2e7748dd8636efe317bf311c43019b3b3e95f26a819bc822499c64a462692
